﻿<Window x:Class="Mengsk.ProxyDelivery.App.UI.Order.ReturnProcessWindowEx"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="退货处理" Height="500" Width="300" SizeToContent="Height" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded">
    <Window.Resources>
        <Style x:Key="NoChromeButton" TargetType="{x:Type Button}">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="Padding" Value="1"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Border BorderBrush="Blue" BorderThickness="1" >
                            <Grid x:Name="Chrome" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
                                <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            </Grid>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsEnabled" Value="false">
                                <Setter Property="Foreground" Value="#ADADAD"/>
                                <Setter Property="Opacity" TargetName="Chrome" Value="0.5"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0" Text="退换原因:" Margin="3" VerticalAlignment="Center"/>
        <ComboBox Grid.Row="0" Grid.Column="1" Name="cbbResult" VerticalAlignment="Center" Margin="3"/>
        <TextBlock  Grid.Row="1" Grid.Column="0" Text="退相关费:" Margin="3" VerticalAlignment="Center"/>
        <StackPanel Grid.Row="1" Grid.Column="1" Margin="3" Orientation="Horizontal">
            <CheckBox Name="chkService" Content="服务费" Margin="3" VerticalAlignment="Center" IsChecked="False"/>
            <CheckBox Name="chkDelivery" Content="快递费" Margin="3" VerticalAlignment="Center" IsChecked="False"/>
        </StackPanel>
        <TextBlock Grid.Row="2" Text="实收数量:" Margin="3" VerticalAlignment="Center"/>
        <TextBox Grid.Row="2" Grid.Column="1" Name="tbRecivedCount" Margin="3" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="3" Text="商品信息:" Margin="3" VerticalAlignment="Center"/>
        <TextBox Grid.Row="3" Grid.Column="1" Name="tbGoodsInfo" Text="" Margin="3" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="4" Text="退商品费:" Margin="3" VerticalAlignment="Center"/>
        <TextBox Grid.Row="4" Grid.Column="1" Name="tbGoodsMoney" Margin="3" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="5" Text="补助运费:" Margin="3" VerticalAlignment="Center"/>
        <TextBox Grid.Row="5" Grid.Column="1" Name="tbDeliveryMoney" Margin="3" VerticalAlignment="Center" Text="0"/>
        <TextBlock Grid.Row="6" Text="描述:" Margin="3" VerticalAlignment="Center"/>
        <TextBox Grid.Row="6" Name="tbComment" Height="40" Grid.ColumnSpan="2" Margin="3"/>
        <TextBlock Grid.Row="7" Text="点击上传图片" Grid.ColumnSpan="2" Margin="3"/>
        <StackPanel Grid.Row="8" Grid.ColumnSpan="2" Orientation="Horizontal">
            <Button Name="btn1" Style="{StaticResource NoChromeButton}" Margin="3" Click="ImageButton_Click">
                <Image Height="80" Width="80" Name="image1"/>
            </Button>
            <Button Name="btn2" Style="{StaticResource NoChromeButton}" Margin="3" Click="ImageButton_Click">
                <Image Height="80" Width="80" Name="image2"/>
            </Button>
            <Button Name="btn3" Style="{StaticResource NoChromeButton}" Margin="3" Click="ImageButton_Click">
                <Image Height="80" Width="80" Name="image3"/>
            </Button>
        </StackPanel>

        <StackPanel Grid.Row="9" Grid.Column="1" Orientation="Horizontal">
            <CheckBox Content="打印信息" Margin="3" Name="chkPrintInfo" VerticalAlignment="Center" IsChecked="True"/>
            <Button Content="确定" Margin="3" Width="60" Name="btnOK" Click="btnOK_Click"/>
            <Button Content="取消" Margin="3" Width="60" Name="btnCancel" Click="btnCancel_Click"/>
        </StackPanel>

    </Grid>
</Window>
